package com.nageffer.shortlink.project.statsStrategy;

import com.nageffer.shortlink.project.mq.producer.RabbitMqStatsProducer;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RequiredArgsConstructor
public class rabbitmqRecord implements statsRecord{

    private final RabbitMqStatsProducer rabbitMqStatsProducer;

    @Override
    public void sendMessage(Map<String, String> producerMap) {
        rabbitMqStatsProducer.send(producerMap);
    }

}
